class SystemController < ApplicationController
  layout "land"
  before_filter :authorize, :grade, :topright
  
  def add_news
    if News.create(params[:news])
      flash[:notice] = "新闻发布成功！"
      redirect_to :action => "news_list"
    end
  end
  
  def news_list
    @news_pages, @news = paginate(:news, :order_by => 'created_at')
  end
  
  def news_show
    @news = News.find(params[:id])
  end
end
